import Vue from 'vue'
import Router from 'vue-router'
import	Home from '@/pages/Home/Home'
import	Classify from '@/pages/Classify/Classify'
import	ShopCar from '@/pages/ShopCar/ShopCar'
import	User from '@/pages/User/User'
import Detail from '@/pages/Detail/Detail'
import ProDetails from '@/pages/Detail/components/ProDetails'
import PublicPraise from '@/pages/Detail/components/PublicPraise'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component:Home
    },{
    	path:'/Classify',
    	name:'Classify',
    	component:Classify
    },{
    	path:'/ShopCar',
    	name:'ShopCar',
    	component:ShopCar
    },{
    	path:'/User',
    	name:'User',
    	component:User
    },{
    	path:'/Detail',
    	name:'Detail',
    	component:Detail,
    	redirect:'/Detail/ProDetails',
    	children:[
    		{
    			path:'/Detail/ProDetails',
    			component:ProDetails
    		},{
    			path:'/Detail/PublicPraise',
    			component:PublicPraise,
    		}
    	]
    }
  ]
})
